<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php echo $this->pageTitle; ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="robots" content="noindex,nofollow" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/public/css/site/jquery.ui/jquery-ui-1.7.2.custom.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/public/css/site/jqgrid.css" />
<!--[if IE 6 ]><style>img, div { behavior: url(<?php echo SiteLayout::imagePath('iepngfix.htc') ?>) }</style><![endif]-->
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/js/site/iepngfix_tilebg.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/assets/jquery/jquery-1.3.2.min.js"></script> 
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/js/site/library.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/assets/jquery/jqgrid/i18n/grid.locale-ru.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/assets/jquery/jqgrid/jquery.jqGrid.min.js"></script>
<script type="text/javascript">
function frameLoad()
{
	jQuery('#list').jqGrid({
		datatype: "json",
		url: '/hotel/advancedsearchact/?<?php echo $_SERVER['QUERY_STRING'] ?>',
		width: <?php echo intval($_GET['gridWidth']) - 100 ?>,
		height: <?php echo intval($_GET['gridHeight']) - 150 ?>,
		colNames: ['Название', 'Гостиница', 'Город', 'Звездность', 'Дата заезда', 'Дата выезда', 'Цена'],
		colModel: [
		           {"name":"room","index":"room","width":450},
		           {"name":"hotel","index":"hotel","width":150,"align":"center"},
		           {"name":"city","index":"city","width":100,"align":"center"},
		           {"name":"stars","index":"stars","width":80,"align":"center"},
		           {"name":"dateStart","index":"dateStart","width":100,"align":"center"},
		           {"name":"dateEnd","index":"dateEnd","width":100,"align":"center"},
		           {"name":"price","index":"price","width":80,"align":"center"}
		          ],
		caption: "&nbsp;",
		sortname: 'room',
		sortorder: 'asc',
		hidegrid: false,
		pager: '#pager',
		rowList: [10,20,30],
		mtype: "post"
	});
}

function openLink(url)
{
	parent.window.open(url);
}
</script>
<style>
.ui-jqgrid .ui-jqgrid-htable th div {
	height: 16px !important;
	overflow: hidden;
	position: relative;
}
</style>
</head>
<body onload="frameLoad();">
<table id="list"></table>
<div id="pager"></div>
</body>
</html>